CC = gcc
CFLAGS = -DSKYSOFT_TR_SUPPORT
OBJ = list.o
SBINDIR ?= $(DESTDIR)${PREFIX}/sbin
TEST = ./test

LIBS = -luci -lsuci -lubox

list: $(OBJ)
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)

%.o: %.c $(DEPS)
	$(CC) -c -o $@ $< $(CFLAGS)

install:
	install -d -m 0755 ${SBINDIR}
	install -m 0755 list ${SBINDIR}

clean:
	rm -f *.o list


